<!DOCTYPE html>
<html class="client-nojs vector-feature-night-mode-disabled vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-sticky-header-enabled" lang="en" dir="ltr"><head>
<meta charset="UTF-8">
<title>Line code</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="canonical" href="https://en.wikipedia.org/wiki/Line_code"> <link href="./mw/ext.cite.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.icons.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.search.codex.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/user.styles.css" rel="stylesheet" type="text/css">
<meta name="ResourceLoaderDynamicStyles" content="">
<link rel="stylesheet" type="text/css" href="./mw/site.styles.css">
<link rel="stylesheet" type="text/css" href="./mw/noscript.css">
<link rel="stylesheet" type="text/css" href="./footer.css">
<link rel="stylesheet" type="text/css" href="./vector-2022.css">
</head>
<body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-Line_code rootpage-Line_code skin-vector-2022 action-view">
<div class="mw-page-container">
<div class="mw-page-container-inner">
<div class="mw-content-container">
<main id="content" class="mw-body">
<header class="mw-body-header vector-page-titlebar">
<h1 id="firstHeading" class="firstHeading mw-first-heading">
<span id="openzim-page-title" class="mw-page-title-main"><span class="mw-page-title-main">Line code</span></span>
</h1>
</header>
<a id="top"></a>
<div id="bodyContent" class="vector-body ve-init-mw-desktopArticleTarget-targetContainer" aria-labelledby="firstHeading" data-mw-ve-target-container="">
<div id="mw-content-text" class="mw-body-content mw-content-ltr" lang="en" dir="ltr"><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr">
<style data-mw-deduplicate="TemplateStyles:r1034237262">
/* start https://en.wikipedia.org/ */
.mw-parser-output .stack{box-sizing:border-box}.mw-parser-output .stack>div{margin:1px;overflow:hidden}@media all and (min-width:720px){.mw-parser-output .stack-clear-left{float:left;clear:left}.mw-parser-output .stack-clear-right{float:right;clear:right}.mw-parser-output .stack-left{float:left}.mw-parser-output .stack-right{float:right}.mw-parser-output .stack-margin-clear-left{float:left;clear:left;margin-right:1em}.mw-parser-output .stack-margin-clear-right{float:right;clear:right;margin-left:1em}.mw-parser-output .stack-margin-left{float:left;margin-right:1em}.mw-parser-output .stack-margin-right{float:right;margin-left:1em}}
/* end https://en.wikipedia.org/ */
</style><div class="stack mw-stack stack-right"><div>
</div></div>
<style data-mw-deduplicate="TemplateStyles:r1129693374">
/* start https://en.wikipedia.org/ */
.mw-parser-output .hlist dl,.mw-parser-output .hlist ol,.mw-parser-output .hlist ul{margin:0;padding:0}.mw-parser-output .hlist dd,.mw-parser-output .hlist dt,.mw-parser-output .hlist li{margin:0;display:inline}.mw-parser-output .hlist.inline,.mw-parser-output .hlist.inline dl,.mw-parser-output .hlist.inline ol,.mw-parser-output .hlist.inline ul,.mw-parser-output .hlist dl dl,.mw-parser-output .hlist dl ol,.mw-parser-output .hlist dl ul,.mw-parser-output .hlist ol dl,.mw-parser-output .hlist ol ol,.mw-parser-output .hlist ol ul,.mw-parser-output .hlist ul dl,.mw-parser-output .hlist ul ol,.mw-parser-output .hlist ul ul{display:inline}.mw-parser-output .hlist .mw-empty-li{display:none}.mw-parser-output .hlist dt::after{content:": "}.mw-parser-output .hlist dd::after,.mw-parser-output .hlist li::after{content:" · ";font-weight:bold}.mw-parser-output .hlist dd:last-child::after,.mw-parser-output .hlist dt:last-child::after,.mw-parser-output .hlist li:last-child::after{content:none}.mw-parser-output .hlist dd dd:first-child::before,.mw-parser-output .hlist dd dt:first-child::before,.mw-parser-output .hlist dd li:first-child::before,.mw-parser-output .hlist dt dd:first-child::before,.mw-parser-output .hlist dt dt:first-child::before,.mw-parser-output .hlist dt li:first-child::before,.mw-parser-output .hlist li dd:first-child::before,.mw-parser-output .hlist li dt:first-child::before,.mw-parser-output .hlist li li:first-child::before{content:" (";font-weight:normal}.mw-parser-output .hlist dd dd:last-child::after,.mw-parser-output .hlist dd dt:last-child::after,.mw-parser-output .hlist dd li:last-child::after,.mw-parser-output .hlist dt dd:last-child::after,.mw-parser-output .hlist dt dt:last-child::after,.mw-parser-output .hlist dt li:last-child::after,.mw-parser-output .hlist li dd:last-child::after,.mw-parser-output .hlist li dt:last-child::after,.mw-parser-output .hlist li li:last-child::after{content:")";font-weight:normal}.mw-parser-output .hlist ol{counter-reset:listitem}.mw-parser-output .hlist ol>li{counter-increment:listitem}.mw-parser-output .hlist ol>li::before{content:" "counter(listitem)"\a0 "}.mw-parser-output .hlist dd ol>li:first-child::before,.mw-parser-output .hlist dt ol>li:first-child::before,.mw-parser-output .hlist li ol>li:first-child::before{content:" ("counter(listitem)"\a0 "}
/* end https://en.wikipedia.org/ */
</style><style data-mw-deduplicate="TemplateStyles:r1246091330">
/* start https://en.wikipedia.org/ */
.mw-parser-output .sidebar{width:22em;float:right;clear:right;margin:0.5em 0 1em 1em;background:var(--background-color-neutral-subtle,#f8f9fa);border:1px solid var(--border-color-base,#a2a9b1);padding:0.2em;text-align:center;line-height:1.4em;font-size:88%;border-collapse:collapse;display:table}body.skin-minerva .mw-parser-output .sidebar{display:table!important;float:right!important;margin:0.5em 0 1em 1em!important}.mw-parser-output .sidebar-subgroup{width:100%;margin:0;border-spacing:0}.mw-parser-output .sidebar-left{float:left;clear:left;margin:0.5em 1em 1em 0}.mw-parser-output .sidebar-none{float:none;clear:both;margin:0.5em 1em 1em 0}.mw-parser-output .sidebar-outer-title{padding:0 0.4em 0.2em;font-size:125%;line-height:1.2em;font-weight:bold}.mw-parser-output .sidebar-top-image{padding:0.4em}.mw-parser-output .sidebar-top-caption,.mw-parser-output .sidebar-pretitle-with-top-image,.mw-parser-output .sidebar-caption{padding:0.2em 0.4em 0;line-height:1.2em}.mw-parser-output .sidebar-pretitle{padding:0.4em 0.4em 0;line-height:1.2em}.mw-parser-output .sidebar-title,.mw-parser-output .sidebar-title-with-pretitle{padding:0.2em 0.8em;font-size:145%;line-height:1.2em}.mw-parser-output .sidebar-title-with-pretitle{padding:0.1em 0.4em}.mw-parser-output .sidebar-image{padding:0.2em 0.4em 0.4em}.mw-parser-output .sidebar-heading{padding:0.1em 0.4em}.mw-parser-output .sidebar-content{padding:0 0.5em 0.4em}.mw-parser-output .sidebar-content-with-subgroup{padding:0.1em 0.4em 0.2em}.mw-parser-output .sidebar-above,.mw-parser-output .sidebar-below{padding:0.3em 0.8em;font-weight:bold}.mw-parser-output .sidebar-collapse .sidebar-above,.mw-parser-output .sidebar-collapse .sidebar-below{border-top:1px solid #aaa;border-bottom:1px solid #aaa}.mw-parser-output .sidebar-navbar{text-align:right;font-size:115%;padding:0 0.4em 0.4em}.mw-parser-output .sidebar-list-title{padding:0 0.4em;text-align:left;font-weight:bold;line-height:1.6em;font-size:105%}.mw-parser-output .sidebar-list-title-c{padding:0 0.4em;text-align:center;margin:0 3.3em}@media(max-width:640px){body.mediawiki .mw-parser-output .sidebar{width:100%!important;clear:both;float:none!important;margin-left:0!important;margin-right:0!important}}body.skin--responsive .mw-parser-output .sidebar a>img{max-width:none!important}@media screen{html.skin-theme-clientpref-night .mw-parser-output .sidebar:not(.notheme) .sidebar-list-title,html.skin-theme-clientpref-night .mw-parser-output .sidebar:not(.notheme) .sidebar-title-with-pretitle{background:transparent!important}html.skin-theme-clientpref-night .mw-parser-output .sidebar:not(.notheme) .sidebar-title-with-pretitle a{color:var(--color-progressive)!important}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .sidebar:not(.notheme) .sidebar-list-title,html.skin-theme-clientpref-os .mw-parser-output .sidebar:not(.notheme) .sidebar-title-with-pretitle{background:transparent!important}html.skin-theme-clientpref-os .mw-parser-output .sidebar:not(.notheme) .sidebar-title-with-pretitle a{color:var(--color-progressive)!important}}@media print{body.ns-0 .mw-parser-output .sidebar{display:none!important}}
/* end https://en.wikipedia.org/ */
</style><table class="sidebar nomobile nowraplinks skin-invert"><tbody><tr><th class="sidebar-title" style="background-color: #bdb"><a href="Passband" title="Passband">Passband</a> <a href="Signal_modulation" title="Signal modulation">modulation</a></th></tr><tr><td class="sidebar-image"><span typeof="mw:File"></span></td></tr><tr><th class="sidebar-heading" style="background-color: #cfc;">
<a href="Signal_modulation#Analog_modulation_methods" title="Signal modulation">Analog modulation</a></th></tr><tr><td class="sidebar-content hlist" style="color: black;">
<ul><li><a href="Amplitude_modulation" title="Amplitude modulation">AM</a>
<ul><li><a href="Space_modulation" title="Space modulation">SM</a></li>
<li><a href="Single-sideband_modulation" title="Single-sideband modulation">SSB</a></li></ul></li>
<li><a href="Angle_modulation" title="Angle modulation">Angle modulation</a>
<ul><li><a href="Frequency_modulation" title="Frequency modulation">FM</a></li>
<li><a href="Phase_modulation" title="Phase modulation">PM</a></li></ul></li>
<li><a href="Quadrature_amplitude_modulation" title="Quadrature amplitude modulation">QAM</a></li></ul></td>
</tr><tr><th class="sidebar-heading" style="background-color: #cfc;">
<a href="Signal_modulation#Digital_modulation_methods" title="Signal modulation">Digital modulation</a></th></tr><tr><td class="sidebar-content hlist" style="color: black;">
<ul><li><a href="Amplitude-shift_keying" title="Amplitude-shift keying">ASK</a></li>
<li><a href="Amplitude_and_phase-shift_keying" title="Amplitude and phase-shift keying">APSK</a></li>
<li><a href="Continuous_phase_modulation" title="Continuous phase modulation">CPM</a></li>
<li><a href="Frequency-shift_keying" title="Frequency-shift keying">FSK</a></li>
<li><a href="Multiple_frequency-shift_keying" title="Multiple frequency-shift keying">MFSK</a></li>
<li><a href="Minimum-shift_keying" title="Minimum-shift keying">MSK</a></li>
<li><a href="On%E2%80%93off_keying" title="On–off keying">OOK</a></li>
<li><a href="Pulse-position_modulation" title="Pulse-position modulation">PPM</a></li>
<li><a href="Phase-shift_keying" title="Phase-shift keying">PSK</a></li>
<li><a href="Quadrature_amplitude_modulation" title="Quadrature amplitude modulation">QAM</a></li>
<li><a href="Single-carrier_FDMA" title="Single-carrier FDMA">SC-FDE</a></li>
<li><a href="Trellis_coded_modulation" title="Trellis coded modulation">TCM</a></li>
<li><a href="TC-PAM" title="TC-PAM">TC-PAM</a></li>
<li><a href="Wavelet_modulation" title="Wavelet modulation">WDM</a></li></ul></td>
</tr><tr><th class="sidebar-heading" style="background-color: #cfc;">
<a href="Hierarchical_modulation" title="Hierarchical modulation">Hierarchical modulation</a></th></tr><tr><td class="sidebar-content hlist" style="color: black;">
<ul><li><a href="Quadrature_amplitude_modulation" title="Quadrature amplitude modulation">QAM</a></li>
<li><a href="Wavelet_modulation" title="Wavelet modulation">WDM</a></li></ul></td>
</tr><tr><th class="sidebar-heading" style="background-color: #cfc;">
<a href="Spread_spectrum" title="Spread spectrum">Spread spectrum</a></th></tr><tr><td class="sidebar-content hlist" style="color: black;">
<ul><li><a href="Chirp_spread_spectrum" title="Chirp spread spectrum">CSS</a></li>
<li><a href="Direct-sequence_spread_spectrum" title="Direct-sequence spread spectrum">DSSS</a></li>
<li><a href="Frequency-hopping_spread_spectrum" title="Frequency-hopping spread spectrum">FHSS</a></li>
<li><a href="Time-hopping" title="Time-hopping">THSS</a></li></ul></td>
</tr><tr><th class="sidebar-heading" style="background-color: #cfc;">
See also</th></tr><tr><td class="sidebar-content hlist" style="color: black;">
<ul><li>Capacity-approaching codes</li>
<li><a href="Demodulation" title="Demodulation">Demodulation</a></li>
<li><a href="Modem" title="Modem">Modem</a></li>
<li><a href="Angle_modulation" title="Angle modulation">AnM</a></li>
<li><a href="Polar_modulation" title="Polar modulation">PoM</a></li>
<li><a href="Pulse-amplitude_modulation" title="Pulse-amplitude modulation">PAM</a></li>
<li><a href="Pulse-code_modulation" title="Pulse-code modulation">PCM</a></li>
<li><a href="Pulse-density_modulation" title="Pulse-density modulation">PDM</a></li>
<li><a href="Pulse-width_modulation" title="Pulse-width modulation">PWM</a></li>
<li><a href="Delta-sigma_modulation" title="Delta-sigma modulation">ΔΣM</a></li>
<li><a href="Orthogonal_frequency-division_multiplexing" title="Orthogonal frequency-division multiplexing">OFDM</a></li>
<li><a href="Frequency-division_multiplexing" title="Frequency-division multiplexing">FDM</a></li>
<li><a href="Multiplexing" title="Multiplexing">Multiplexing</a></li></ul></td>
</tr><tr><td class="sidebar-navbar"><style data-mw-deduplicate="TemplateStyles:r1239400231">
/* start https://en.wikipedia.org/ */
.mw-parser-output .navbar{display:inline;font-size:88%;font-weight:normal}.mw-parser-output .navbar-collapse{float:left;text-align:left}.mw-parser-output .navbar-boxtext{word-spacing:0}.mw-parser-output .navbar ul{display:inline-block;white-space:nowrap;line-height:inherit}.mw-parser-output .navbar-brackets::before{margin-right:-0.125em;content:"[ "}.mw-parser-output .navbar-brackets::after{margin-left:-0.125em;content:" ]"}.mw-parser-output .navbar li{word-spacing:-0.125em}.mw-parser-output .navbar a>span,.mw-parser-output .navbar a>abbr{text-decoration:inherit}.mw-parser-output .navbar-mini abbr{font-variant:small-caps;border-bottom:none;text-decoration:none;cursor:inherit}.mw-parser-output .navbar-ct-full{font-size:114%;margin:0 7em}.mw-parser-output .navbar-ct-mini{font-size:114%;margin:0 4em}html.skin-theme-clientpref-night .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}@media(prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}}@media print{.mw-parser-output .navbar{display:none!important}}
/* end https://en.wikipedia.org/ */
</style></td></tr></tbody></table>
<p>In <a href="Telecommunications" title="Telecommunications">telecommunications</a>, a <b>line code</b> is a pattern of voltage, current, or photons used to represent digital data <a href="Transmission_(telecommunications)" class="mw-redirect" title="Transmission (telecommunications)">transmitted</a> down a <a href="Communication_channel" title="Communication channel">communication channel</a> or written to a <a href="Storage_medium" class="mw-redirect" title="Storage medium">storage medium</a>. This repertoire of signals is usually called a <b>constrained code</b> in data storage systems.<sup id="cite_ref-1" class="reference"><a href="#cite_note-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup>
Some signals are more prone to error than others as the physics of the communication channel or storage medium constrains the repertoire of signals that can be used reliably.<sup id="cite_ref-optics_2-0" class="reference"><a href="#cite_note-optics-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup>
</p><p>Common line encodings are <a href="Unipolar_encoding" title="Unipolar encoding">unipolar</a>, <a href="Polar_encoding" class="mw-redirect" title="Polar encoding">polar</a>, <a href="Bipolar_encoding" title="Bipolar encoding">bipolar</a>, and <a href="Manchester_code" title="Manchester code">Manchester code</a>.
</p>
<meta property="mw:PageProp/toc">
<div class="mw-heading mw-heading2"><h2 id="Transmission_and_storage">Transmission and storage</h2></div>
<p>After line coding, the signal is put through a physical communication channel, either a <a href="Transmission_medium" title="Transmission medium">transmission medium</a> or <a href="Data_storage_medium" class="mw-redirect" title="Data storage medium">data storage medium</a>.<sup id="cite_ref-paulsen_3-0" class="reference"><a href="#cite_note-paulsen-3"><span class="cite-bracket">[</span>3<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-4" class="reference"><a href="#cite_note-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup> The most common physical channels are:
</p>
<ul><li>the line-coded signal can directly be put on a <a href="Transmission_line" title="Transmission line">transmission line</a>, in the form of variations of the voltage or current (often using <a href="Differential_signaling" class="mw-redirect" title="Differential signaling">differential signaling</a>).</li>
<li>the line-coded signal (the <i><a href="Baseband" title="Baseband">baseband</a> signal</i>) undergoes further <a href="Pulse_shaping" title="Pulse shaping">pulse shaping</a> (to reduce its frequency bandwidth) and then is <a href="Modulation" class="mw-redirect" title="Modulation">modulated</a> (to shift its frequency) to create an <i><a href="RF_signal" class="mw-redirect" title="RF signal">RF signal</a></i> that can be sent through free space.</li>
<li>the line-coded signal can be used to turn on and off a light source in <a href="Free-space_optical_communication" title="Free-space optical communication">free-space optical communication</a>, most commonly used in an infrared <a href="Remote_control" title="Remote control">remote control</a>.</li>
<li>the line-coded signal can be printed on paper to create a <a href="Bar_code" class="mw-redirect" title="Bar code">bar code</a>.</li>
<li>the line-coded signal can be converted to magnetized spots on a <a href="Hard_drive" class="mw-redirect" title="Hard drive">hard drive</a> or <a href="Tape_drive" title="Tape drive">tape drive</a>.</li>
<li>the line-coded signal can be converted to pits on an <a href="Optical_disc" title="Optical disc">optical disc</a>.</li></ul>
<p>Some of the more common binary line codes include:
</p>
<table class="wikitable">
<tbody><tr>
<th>Signal</th>
<th>Comments</th>
<th>1 state</th>
<th>0 state
</th></tr>
<tr>
<td>NRZ–L</td>
<td><a href="Non-return-to-zero" title="Non-return-to-zero">Non-return-to-zero</a> level. This is the standard positive logic signal format used in digital circuits.
</td>
<td>forces a high level
</td>
<td>forces a low level
</td></tr>
<tr>
<td>NRZ–M</td>
<td>Non-return-to-zero mark
</td>
<td>forces a transition
</td>
<td>does nothing (keeps sending the previous level)
</td></tr>
<tr>
<td>NRZ–S</td>
<td>Non-return-to-zero space
</td>
<td>does nothing (keeps sending the previous level)
</td>
<td>forces a transition
</td></tr>
<tr>
<td>RZ</td>
<td>Return to zero
</td>
<td>goes high for half the bit period and returns to low
</td>
<td>stays low for the entire period
</td></tr>
<tr>
<td>Biphase–L</td>
<td>Manchester. Two consecutive bits of the same type force a transition at the beginning of a bit period.
</td>
<td>forces a negative transition in the middle of the bit
</td>
<td>forces a positive transition in the middle of the bit
</td></tr>
<tr>
<td>Biphase–M</td>
<td>Variant of Differential Manchester. There is always a transition halfway between the conditioned transitions.
</td>
<td>forces a transition
</td>
<td>keeps level constant
</td></tr>
<tr>
<td>Biphase–S</td>
<td>Differential Manchester used in Token Ring. There is always a transition halfway between the conditioned transitions.
</td>
<td>keeps level constant
</td>
<td>forces a transition
</td></tr>
<tr>
<td>Differential Manchester (Alternative)</td>
<td>Need a Clock, always a transition in the middle of the clock period
</td>
<td>is represented by no transition.
</td>
<td>is represented by a transition at the beginning of the clock period.
</td></tr>
<tr>
<td>Bipolar</td>
<td>The positive and negative pulses alternate.
</td>
<td>forces a positive or negative pulse for half the bit period
</td>
<td>keeps a zero level during bit period
</td></tr></tbody></table>
<p>Each line code has advantages and disadvantages. Line codes are chosen to meet one or more of the following criteria:
</p>
<ul><li>Minimize transmission hardware</li>
<li>Facilitate synchronization</li>
<li>Ease error detection and correction</li>
<li>Achieve a target <a href="Spectral_density" title="Spectral density">spectral density</a></li>
<li>Eliminate a <a href="DC_component" class="mw-redirect" title="DC component">DC component</a></li></ul>
<div class="mw-heading mw-heading2"><h2 id="Disparity">Disparity</h2></div>
<p>Most long-distance communication channels cannot reliably transport a <a href="DC_component" class="mw-redirect" title="DC component">DC component</a>. The DC component is also called the <i>disparity</i>, the <i>bias</i>, or the <a href="DC_coefficient" class="mw-redirect" title="DC coefficient">DC coefficient</a>. The disparity of a bit pattern is the difference in the number of one bits vs the number of zero bits. The <i>running disparity</i> is the <a href="Running_total" title="Running total">running total</a> of the disparity of all previously transmitted bits.<sup id="cite_ref-5" class="reference"><a href="#cite_note-5"><span class="cite-bracket">[</span>5<span class="cite-bracket">]</span></a></sup> The simplest possible line code, <a href="Unipolar_encoding" title="Unipolar encoding">unipolar</a>, gives too many errors on such systems, because it has an unbounded DC component.
</p><p>Most line codes eliminate the DC component – such codes are called <a href="DC-balanced" class="mw-redirect" title="DC-balanced">DC-balanced</a>, zero-DC, or DC-free. There are three ways of eliminating the DC component:
</p>
<ul><li>Use a <a href="Constant-weight_code" title="Constant-weight code">constant-weight code</a>. Each transmitted <a href="Code_word_(communication)" title="Code word (communication)">code word</a> in a constant-weight code is designed such that every code word that contains some positive or negative levels also contains enough of the opposite levels, such that the average level over each code word is zero. Examples of constant-weight codes include <a href="Manchester_code" title="Manchester code">Manchester code</a> and <a href="Interleaved_2_of_5" title="Interleaved 2 of 5">Interleaved 2 of 5</a>.</li>
<li>Use a <a href="Paired_disparity_code" title="Paired disparity code">paired disparity code</a>. Each code word in a paired disparity code that averages to a negative level is paired with another code word that averages to a positive level. The transmitter keeps track of the running DC buildup, and picks the code word that pushes the DC level back towards zero. The receiver is designed so that either code word of the pair decodes to the same data bits. Examples of paired disparity codes include <a href="Alternate_mark_inversion" class="mw-redirect" title="Alternate mark inversion">alternate mark inversion</a>, <a href="8b/10b" class="mw-redirect" title="8b/10b">8b/10b</a> and <a href="4B3T" title="4B3T">4B3T</a>.</li>
<li>Use a <a href="Scrambler" title="Scrambler">scrambler</a>. For example, the scrambler specified in <style data-mw-deduplicate="TemplateStyles:r1238218222">
/* start https://en.wikipedia.org/ */
.mw-parser-output cite.citation{font-style:inherit;word-wrap:break-word}.mw-parser-output .citation q{quotes:"\"""\"""'""'"}.mw-parser-output .citation:target{background-color:rgba(0,127,255,0.133)}.mw-parser-output .id-lock-free.id-lock-free a{background:url("./mw/Lock-green.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-limited.id-lock-limited a,.mw-parser-output .id-lock-registration.id-lock-registration a{background:url("./mw/Lock-gray-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-subscription.id-lock-subscription a{background:url("./mw/Lock-red-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .cs1-ws-icon a{background:url("./mw/Wikisource-logo.svg")right 0.1em center/12px no-repeat}body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-free a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-limited a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-registration a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-subscription a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .cs1-ws-icon a{background-size:contain;padding:0 1em 0 0}.mw-parser-output .cs1-code{color:inherit;background:inherit;border:none;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;color:var(--color-error,#d33)}.mw-parser-output .cs1-visible-error{color:var(--color-error,#d33)}.mw-parser-output .cs1-maint{display:none;color:#085;margin-left:0.3em}.mw-parser-output .cs1-kern-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right{padding-right:0.2em}.mw-parser-output .citation .mw-selflink{font-weight:inherit}@media screen{.mw-parser-output .cs1-format{font-size:95%}html.skin-theme-clientpref-night .mw-parser-output .cs1-maint{color:#18911f}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .cs1-maint{color:#18911f}}
/* end https://en.wikipedia.org/ */
</style><a href="RFC_(identifier)" class="mw-redirect" title="RFC (identifier)">RFC</a> <a rel="nofollow" class="external text" href="https://www.rfc-editor.org/rfc/rfc2615">2615</a> for <a href="64b/66b_encoding" title="64b/66b encoding">64b/66b encoding</a>.</li></ul>
<div class="mw-heading mw-heading2"><h2 id="Polarity">Polarity</h2></div>
<p>Bipolar line codes have two polarities, are generally implemented as RZ, and have a radix of three since there are three distinct output levels (negative, positive and zero). One of the principal advantages of this type of code is that it can eliminate any DC component. This is important if the signal must pass through a transformer or a long transmission line.
</p><p>Unfortunately, several long-distance communication channels have polarity ambiguity. Polarity-insensitive line codes compensate in these channels.<sup id="cite_ref-6" class="reference"><a href="#cite_note-6"><span class="cite-bracket">[</span>6<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-7" class="reference"><a href="#cite_note-7"><span class="cite-bracket">[</span>7<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-8" class="reference"><a href="#cite_note-8"><span class="cite-bracket">[</span>8<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-9" class="reference"><a href="#cite_note-9"><span class="cite-bracket">[</span>9<span class="cite-bracket">]</span></a></sup>
There are three ways of providing unambiguous reception of 0 and 1 bits over such channels:
</p>
<ul><li>Pair each code word with the polarity-inverse of that code word. The receiver is designed so that either code word of the pair decodes to the same data bits. Examples include <a href="Alternate_mark_inversion" class="mw-redirect" title="Alternate mark inversion">alternate mark inversion</a>, <a href="Differential_Manchester_encoding" title="Differential Manchester encoding">Differential Manchester encoding</a>, <a href="Coded_mark_inversion" title="Coded mark inversion">coded mark inversion</a> and <a href="Miller_encoding" class="mw-redirect" title="Miller encoding">Miller encoding</a>.</li>
<li><a href="Differential_coding" title="Differential coding">differential coding</a> each symbol relative to the previous symbol. Examples include <a href="MLT-3_encoding" title="MLT-3 encoding">MLT-3 encoding</a> and <a href="NRZI" class="mw-redirect" title="NRZI">NRZI</a>.</li>
<li>Invert the whole stream when inverted <a href="Syncword" title="Syncword">syncwords</a> are detected, perhaps using <a href="Differential_signalling#Polarity_switching" title="Differential signalling"> polarity switching </a></li></ul>
<div class="mw-heading mw-heading2"><h2 id="Run-length_limited_codes">Run-length limited codes</h2></div>
<p>For reliable <a href="Clock_recovery" title="Clock recovery">clock recovery</a> at the receiver, a <a href="Run-length_limited" title="Run-length limited">run-length limitation</a> may be imposed on the generated channel sequence, i.e., the maximum number of consecutive ones or zeros is bounded to a reasonable number. A clock period is recovered by observing transitions in the received sequence, so that a maximum run length guarantees sufficient transitions to assure clock recovery quality.
</p><p>RLL codes are defined by four main parameters: <i>m</i>, <i>n</i>, <i>d</i>, <i>k</i>. The first two, <i>m</i>/<i>n</i>, refer to the rate of the code, while the remaining two specify the minimal <i>d</i> and maximal <i>k</i> number of zeroes between consecutive ones. This is used in both <a href="Telecommunications" title="Telecommunications">telecommunications</a> and storage systems that move a medium past a fixed <a href="Recording_head" class="mw-redirect" title="Recording head">recording head</a>.<sup id="cite_ref-10" class="reference"><a href="#cite_note-10"><span class="cite-bracket">[</span>10<span class="cite-bracket">]</span></a></sup>
</p><p>Specifically, RLL bounds the length of stretches (runs) of repeated bits during which the signal does not change. If the runs are too long, clock recovery is difficult; if they are too short, the high frequencies might be attenuated by the communications channel. By <a href="Modulation" class="mw-redirect" title="Modulation">modulating</a> the <a href="Data" title="Data">data</a>, RLL reduces the timing uncertainty in decoding the stored data, which would lead to the possible erroneous insertion or removal of bits when reading the data back. This mechanism ensures that the boundaries between bits can always be accurately found (preventing <a href="Bit_slip" title="Bit slip">bit slip</a>), while efficiently using the media to reliably store the maximal amount of data in a given space.
</p><p>Early disk drives used very simple encoding schemes, such as RLL (0,1) FM code, followed by RLL (1,3) MFM code which were widely used in <a href="Hard_disk_drive" title="Hard disk drive">hard disk drives</a> until the mid-1980s and are still used in digital optical discs such as <a href="CD" class="mw-redirect" title="CD">CD</a>, <a href="DVD" title="DVD">DVD</a>, <a href="Minidisc" class="mw-redirect" title="Minidisc">MD</a>, <a href="Hi-MD" title="Hi-MD">Hi-MD</a> and <a href="Blu-ray" title="Blu-ray">Blu-ray</a> using <a href="Eight-to-Fourteen_Modulation" class="mw-redirect" title="Eight-to-Fourteen Modulation">EFM</a> and EFMPLus codes.<sup id="cite_ref-11" class="reference"><a href="#cite_note-11"><span class="cite-bracket">[</span>11<span class="cite-bracket">]</span></a></sup> Higher density RLL (2,7) and RLL (1,7) codes became the <a href="De_facto_standard" title="De facto standard">de facto standards</a> for hard disks by the early 1990s.
</p>
<div class="mw-heading mw-heading2"><h2 id="Synchronization">Synchronization</h2></div>
<style data-mw-deduplicate="TemplateStyles:r1236090951">
/* start https://en.wikipedia.org/ */
.mw-parser-output .hatnote{font-style:italic}.mw-parser-output div.hatnote{padding-left:1.6em;margin-bottom:0.5em}.mw-parser-output .hatnote i{font-style:normal}.mw-parser-output .hatnote+link+.hatnote{margin-top:-0.5em}@media print{body.ns-0 .mw-parser-output .hatnote{display:none!important}}
/* end https://en.wikipedia.org/ */
</style><div role="note" class="hatnote navigation-not-searchable">Main article: <a href="Clock_recovery" title="Clock recovery">Clock recovery</a></div>
<p>Line coding should make it possible for the receiver to synchronize itself to the <a href="Phase_(waves)" title="Phase (waves)">phase</a> of the received signal. If the clock recovery is not ideal, then the signal to be decoded will not be sampled at the optimal times. This will increase the probability of error in the received data.
</p><p>Biphase line codes require at least one transition per bit time. This makes it easier to synchronize the transceivers and detect errors, however, the baud rate is greater than that of NRZ codes.
</p>
<div class="mw-heading mw-heading2"><h2 id="Other_considerations">Other considerations</h2></div>
<p>A line code will typically reflect technical requirements of the transmission medium, such as <a href="Optical_fiber" title="Optical fiber">optical fiber</a> or <a href="Shielded_twisted_pair" class="mw-redirect" title="Shielded twisted pair">shielded twisted pair</a>. These requirements are unique for each medium, because each one has different behavior related to interference, distortion, capacitance and attenuation.<sup id="cite_ref-12" class="reference"><a href="#cite_note-12"><span class="cite-bracket">[</span>12<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading2"><h2 id="Common_line_codes">Common line codes</h2></div>
<style data-mw-deduplicate="TemplateStyles:r1184024115">
/* start https://en.wikipedia.org/ */
.mw-parser-output .div-col{margin-top:0.3em;column-width:30em}.mw-parser-output .div-col-small{font-size:90%}.mw-parser-output .div-col-rules{column-rule:1px solid #aaa}.mw-parser-output .div-col dl,.mw-parser-output .div-col ol,.mw-parser-output .div-col ul{margin-top:0}.mw-parser-output .div-col li,.mw-parser-output .div-col dd{page-break-inside:avoid;break-inside:avoid-column}
/* end https://en.wikipedia.org/ */
</style><div class="div-col" style="column-width: 30em;">
<ul><li><a href="2B1Q" title="2B1Q">2B1Q</a></li>
<li><a href="4B3T" title="4B3T">4B3T</a></li>
<li><a href="4B5B" title="4B5B">4B5B</a></li>
<li><a href="6b/8b_encoding" title="6b/8b encoding">6b/8b encoding</a></li>
<li><a href="8b/10b_encoding" title="8b/10b encoding">8b/10b encoding</a></li>
<li><a href="64b/66b_encoding" title="64b/66b encoding">64b/66b encoding</a></li>
<li><a href="128b/130b_encoding" class="mw-redirect" title="128b/130b encoding">128b/130b encoding</a></li>
<li><a href="Alternate_mark_inversion" class="mw-redirect" title="Alternate mark inversion">Alternate mark inversion</a> (AMI)</li>
<li><a href="Coded_mark_inversion" title="Coded mark inversion">Coded mark inversion</a> (CMI)</li>
<li><a href="EFMPlus" class="mw-redirect" title="EFMPlus">EFMPlus</a>, used in <a href="DVD" title="DVD">DVDs</a></li>
<li><a href="Eight-to-fourteen_modulation" title="Eight-to-fourteen modulation">Eight-to-fourteen modulation</a> (EFM), used in <a href="Compact_disc" title="Compact disc">compact discs</a></li>
<li><a href="Hamming_code" title="Hamming code">Hamming code</a></li>
<li><a href="Hybrid_ternary_code" title="Hybrid ternary code">Hybrid ternary code</a></li>
<li><a href="Manchester_code" title="Manchester code">Manchester code</a> and <a href="Differential_Manchester_encoding" title="Differential Manchester encoding">differential Manchester</a></li>
<li><a href="Mark_and_space" title="Mark and space">Mark and space</a></li>
<li><a href="MLT-3_encoding" title="MLT-3 encoding">MLT-3 encoding</a></li>
<li><a href="Modified_AMI_code" title="Modified AMI code">Modified AMI codes</a>: B8ZS, B6ZS, B3ZS, HDB3</li>
<li><a href="Modified_frequency_modulation" title="Modified frequency modulation">Modified frequency modulation</a>, Miller encoding and delay encoding</li>
<li><a href="Non-return-to-zero" title="Non-return-to-zero">Non-return-to-zero</a> (NRZ)</li>
<li><a href="Non-return-to-zero%2C_inverted" class="mw-redirect" title="Non-return-to-zero, inverted">Non-return-to-zero, inverted</a> (NRZI)</li>
<li><a href="Pulse-position_modulation" title="Pulse-position modulation">Pulse-position modulation</a> (PPM)</li>
<li><a href="Return-to-zero" title="Return-to-zero">Return-to-zero</a> (RZ)</li>
<li><a href="TC-PAM" title="TC-PAM">TC-PAM</a></li></ul>
</div>
<div class="mw-heading mw-heading3"><h3 id="Optical_line_codes">Optical line codes</h3></div>
<ul><li><a href="Alternate-Phase_Return-to-Zero" title="Alternate-Phase Return-to-Zero">Alternate-Phase Return-to-Zero</a> (APRZ)</li>
<li><a href="Carrier-Suppressed_Return-to-Zero" title="Carrier-Suppressed Return-to-Zero">Carrier-Suppressed Return-to-Zero</a> (CSRZ)</li>
<li><a href="IEEE_1355#Slice:_TS-FO-02" title="IEEE 1355">Three of Six, Fiber Optical</a> (TS-FO)</li></ul>
<div class="mw-heading mw-heading2"><h2 id="See_also">See also</h2></div>
<ul><li><a href="Physical_layer" title="Physical layer">Physical layer</a></li>
<li><a href="Self-synchronizing_code" title="Self-synchronizing code">Self-synchronizing code</a> and bit synchronization</li></ul>
<div class="mw-heading mw-heading2"><h2 id="References">References</h2></div>
<style data-mw-deduplicate="TemplateStyles:r1239543626">
/* start https://en.wikipedia.org/ */
.mw-parser-output .reflist{margin-bottom:0.5em;list-style-type:decimal}@media screen{.mw-parser-output .reflist{font-size:90%}}.mw-parser-output .reflist .references{font-size:100%;margin-bottom:0;list-style-type:inherit}.mw-parser-output .reflist-columns-2{column-width:30em}.mw-parser-output .reflist-columns-3{column-width:25em}.mw-parser-output .reflist-columns{margin-top:0.3em}.mw-parser-output .reflist-columns ol{margin-top:0}.mw-parser-output .reflist-columns li{page-break-inside:avoid;break-inside:avoid-column}.mw-parser-output .reflist-upper-alpha{list-style-type:upper-alpha}.mw-parser-output .reflist-upper-roman{list-style-type:upper-roman}.mw-parser-output .reflist-lower-alpha{list-style-type:lower-alpha}.mw-parser-output .reflist-lower-greek{list-style-type:lower-greek}.mw-parser-output .reflist-lower-roman{list-style-type:lower-roman}
/* end https://en.wikipedia.org/ */
</style><div class="reflist">
<div class="mw-references-wrap mw-references-columns"><ol class="references">
<li id="cite_note-1"><span class="mw-cite-backlink"><b><a href="#cite_ref-1">^</a></b></span> <span class="reference-text"><cite id="CITEREFK._Schouhamer_Immink2022" class="citation journal cs1"><a href="Kees_Schouhamer_Immink" title="Kees Schouhamer Immink">K. Schouhamer Immink</a> (2022). <a rel="nofollow" class="external text" href="https://www.researchgate.net/publication/362866105">"Innovation in Constrained Codes"</a>. <i>IEEE Communications Magazine</i><span class="reference-accessdate">. Retrieved <span class="nowrap">2022-10-05</span></span>.</cite></span>
</li>
<li id="cite_note-optics-2"><span class="mw-cite-backlink"><b><a href="#cite_ref-optics_2-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFK._Schouhamer_Immink2001" class="citation journal cs1"><a href="Kees_Schouhamer_Immink" title="Kees Schouhamer Immink">K. Schouhamer Immink</a> (2001). <a rel="nofollow" class="external text" href="https://www.researchgate.net/publication/3234561">"A Survey of Codes for Optical Disk Recording"</a>. <i>IEEE Journal on Selected Areas in Communications</i>. <b>19</b>: <span class="nowrap">751–</span>764<span class="reference-accessdate">. Retrieved <span class="nowrap">2018-02-05</span></span>.</cite></span>
</li>
<li id="cite_note-paulsen-3"><span class="mw-cite-backlink"><b><a href="#cite_ref-paulsen_3-0">^</a></b></span> <span class="reference-text">Karl Paulsen. <a rel="nofollow" class="external text" href="http://www.tvtechnology.com/media-servers/0150/coding-for-magnetic-storage-mediums/186738">"Coding for Magnetic Storage Mediums"</a> <a rel="nofollow" class="external text" href="https://web.archive.org/web/20140521215946/http://www.tvtechnology.com/media-servers/0150/coding-for-magnetic-storage-mediums/186738">Archived</a> 2014-05-21 at the <a href="Wayback_Machine" title="Wayback Machine">Wayback Machine</a>.2007.</span>
</li>
<li id="cite_note-4"><span class="mw-cite-backlink"><b><a href="#cite_ref-4">^</a></b></span> <span class="reference-text"><cite id="CITEREFAbdullatif_GlassNidhal_Abdulazizand_Eesa_Bastaki2007" class="citation cs2">Abdullatif Glass; Nidhal Abdulaziz; and Eesa Bastaki (2007), <a rel="nofollow" class="external text" href="http://ro.uow.edu.au/cgi/viewcontent.cgi?article=1285&context=dubaipapers">"Slope line coding for telecommunication networks"</a>, <i>IEEE International Conference on Signal Processing and Communication</i>, Dubai: IEEE: 1537, <q>Line codes ... facilitates the transmission of data over telecommunication and computer networks and its storage in multimedia systems.</q></cite></span>
</li>
<li id="cite_note-5"><span class="mw-cite-backlink"><b><a href="#cite_ref-5">^</a></b></span> <span class="reference-text"><cite id="CITEREFJens_Kröger2014" class="citation web cs1">Jens Kröger (2014). <a rel="nofollow" class="external text" href="https://www.psi.ch/mu3e/ThesesEN/BachelorKroeger.pdf">"Data Transmission at High Rates via Kapton Flexprints for the Mu3e Experiment"</a> <span class="cs1-format">(PDF)</span>. p. 16. <a rel="nofollow" class="external text" href="https://ghostarchive.org/archive/20221009/https://www.psi.ch/mu3e/ThesesEN/BachelorKroeger.pdf">Archived</a> <span class="cs1-format">(PDF)</span> from the original on 2022-10-09.</cite></span>
</li>
<li id="cite_note-6"><span class="mw-cite-backlink"><b><a href="#cite_ref-6">^</a></b></span> <span class="reference-text">
<style data-mw-deduplicate="TemplateStyles:r1041539562">
/* start https://en.wikipedia.org/ */
.mw-parser-output .citation{word-wrap:break-word}.mw-parser-output .citation:target{background-color:rgba(0,127,255,0.133)}
/* end https://en.wikipedia.org/ */
</style><span class="citation patent" id="CITEREFPeter_E._K._Chow.1983"><a rel="nofollow" class="external text" href="https://www.google.com.ar/patents/US4387366">US 4387366</a>, Peter E. K. Chow., "Code converter for polarity-insensitive transmission systems", published 1983</span><span class="Z3988" title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Apatent&rft.number=4387366&rft.cc=US&rft.title=Code+converter+for+polarity-insensitive+transmission+systems&rft.inventor=Peter+E.+K.+Chow.&rft.pubdate=1983"><span style="display: none;"> </span></span></span>
</li>
<li id="cite_note-7"><span class="mw-cite-backlink"><b><a href="#cite_ref-7">^</a></b></span> <span class="reference-text">
<cite id="CITEREFDavid_A._Glanzer" class="citation cs2">David A. Glanzer, "4.7 Polarity", <a rel="nofollow" class="external text" href="http://www.fieldbus.org/images/stories/enduserresources/technicalreferences/documents/wiringinstallationguide.pdf"><i>Fieldbus Application Guide ... Wiring and Installation</i></a> <span class="cs1-format">(PDF)</span>, <a href="Fieldbus_Foundation" title="Fieldbus Foundation">Fieldbus Foundation</a>, p. 10, <a rel="nofollow" class="external text" href="https://ghostarchive.org/archive/20221009/http://www.fieldbus.org/images/stories/enduserresources/technicalreferences/documents/wiringinstallationguide.pdf">archived</a> <span class="cs1-format">(PDF)</span> from the original on 2022-10-09</cite></span>
</li>
<li id="cite_note-8"><span class="mw-cite-backlink"><b><a href="#cite_ref-8">^</a></b></span> <span class="reference-text">
<cite id="CITEREFGeorge_C._Clark_Jr.J._Bibb_Cain2013" class="citation book cs1">George C. Clark Jr.; J. Bibb Cain (2013). <a rel="nofollow" class="external text" href="https://books.google.com/books?id=wgzyBwAAQBAJ"><i>Error-Correction Coding for Digital Communications</i></a>. Springer Science & Business Media. p. 255. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <bdi>9781489921741</bdi>. <q>When PSK data modulation is used, the potential exists for an ambiguity in the polarity of the received channel symbols. This problem can be solved in one of two ways. First ... a so-called <i>transparent</i> code. ...</q></cite></span>
</li>
<li id="cite_note-9"><span class="mw-cite-backlink"><b><a href="#cite_ref-9">^</a></b></span> <span class="reference-text">
<cite id="CITEREFPrakash_C._Gupta2013" class="citation book cs1">Prakash C. Gupta (2013). <a rel="nofollow" class="external text" href="https://books.google.com/books?id=Zr1nAgAAQBAJ"><i>Data Communications and Computer Networks</i></a>. PHI Learning Pvt. Ltd. p. 13. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <bdi>9788120348646</bdi>. <q>Another benefit of differential encoding is its insensitivity to polarity of the signal. ... If the leads of a twisted pair are accidentally reversed...</q></cite></span>
</li>
<li id="cite_note-10"><span class="mw-cite-backlink"><b><a href="#cite_ref-10">^</a></b></span> <span class="reference-text"><cite id="CITEREFKees_Schouhamer_Immink1990" class="citation journal cs1"><a href="Kees_Schouhamer_Immink" title="Kees Schouhamer Immink">Kees Schouhamer Immink</a> (December 1990). <a rel="nofollow" class="external text" href="https://www.researchgate.net/publication/2984369">"Runlength-Limited Sequences"</a>. <i>Proceedings of the IEEE</i>. <b>78</b> (11): <span class="nowrap">1745–</span>1759. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1109%2F5.63306">10.1109/5.63306</a>. <q>A detailed description is furnished of the limiting properties of runlength limited sequences.</q></cite></span>
</li>
<li id="cite_note-11"><span class="mw-cite-backlink"><b><a href="#cite_ref-11">^</a></b></span> <span class="reference-text"><cite id="CITEREFKees_Schouhamer_Immink1995" class="citation journal cs1 cs1-prop-long-vol"><a href="Kees_Schouhamer_Immink" title="Kees Schouhamer Immink">Kees Schouhamer Immink</a> (1995). <a rel="nofollow" class="external text" href="https://www.researchgate.net/publication/3179483">"EFMPlus: The Coding Format of the MultiMedia Compact Disc"</a>. <i>IEEE Transactions on Consumer Electronics</i>. CE-41: <span class="nowrap">491–</span>497. <q>A high-density alternative to EFM is described.</q></cite></span>
</li>
<li id="cite_note-12"><span class="mw-cite-backlink"><b><a href="#cite_ref-12">^</a></b></span> <span class="reference-text"><cite id="CITEREFDong2007" class="citation book cs1">Dong, Jielin (2007). <a rel="nofollow" class="external text" href="https://books.google.com/books?id=On_Hh23IXDUC&pg=PA284"><i>Network Dictionary</i></a>. Javvin Technologies Inc. p. 284. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <bdi>9781602670006</bdi>.</cite></span>
</li>
</ol></div></div>
<ul><li><span class="citation FS1037C MS188"><span class="noviewer" typeof="mw:File"><span></span></span> This article incorporates <a href="Copyright_status_of_works_by_the_federal_government_of_the_United_States" title="Copyright status of works by the federal government of the United States">public domain material</a> from <cite class="citation cs1"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20220122224547/https://www.its.bldrdoc.gov/fs-1037/fs-1037c.htm"><i>Federal Standard 1037C</i></a>. <a href="General_Services_Administration" title="General Services Administration">General Services Administration</a>. Archived from <a rel="nofollow" class="external text" href="https://www.its.bldrdoc.gov/fs-1037/fs-1037c.htm">the original</a> on 2022-01-22.</cite> (in support of <a href="MIL-STD-188" title="MIL-STD-188">MIL-STD-188</a>).</span></li></ul>
<div class="mw-heading mw-heading2"><h2 id="External_links">External links</h2></div>
<ul><li><a rel="nofollow" class="external text" href="https://web.archive.org/web/20130418052107/http://www.electronics.dit.ie/staff/amoloney/lecture-9.pdf">Line Coding Lecture No. 9</a></li>
<li><a rel="nofollow" class="external text" href="http://www.fiberoptics4sale.com/wordpress/line-coding-in-digital-communication/">Line Coding in Digital Communication</a></li>
<li><a rel="nofollow" class="external text" href="https://www.ac.uma.es/~guille/codsim2.0/">CodSim 2.0: Open source simulator for Digital Data Communications Model at the University of Malaga written in HTML</a></li></ul>
<div class="skin-invert-image"><div class="navbox-styles"><style data-mw-deduplicate="TemplateStyles:r1236075235">
/* start https://en.wikipedia.org/ */
.mw-parser-output .navbox{box-sizing:border-box;border:1px solid #a2a9b1;width:100%;clear:both;font-size:88%;text-align:center;padding:1px;margin:1em auto 0}.mw-parser-output .navbox .navbox{margin-top:0}.mw-parser-output .navbox+.navbox,.mw-parser-output .navbox+.navbox-styles+.navbox{margin-top:-1px}.mw-parser-output .navbox-inner,.mw-parser-output .navbox-subgroup{width:100%}.mw-parser-output .navbox-group,.mw-parser-output .navbox-title,.mw-parser-output .navbox-abovebelow{padding:0.25em 1em;line-height:1.5em;text-align:center}.mw-parser-output .navbox-group{white-space:nowrap;text-align:right}.mw-parser-output .navbox,.mw-parser-output .navbox-subgroup{background-color:#fdfdfd}.mw-parser-output .navbox-list{line-height:1.5em;border-color:#fdfdfd}.mw-parser-output .navbox-list-with-group{text-align:left;border-left-width:2px;border-left-style:solid}.mw-parser-output tr+tr>.navbox-abovebelow,.mw-parser-output tr+tr>.navbox-group,.mw-parser-output tr+tr>.navbox-image,.mw-parser-output tr+tr>.navbox-list{border-top:2px solid #fdfdfd}.mw-parser-output .navbox-title{background-color:#ccf}.mw-parser-output .navbox-abovebelow,.mw-parser-output .navbox-group,.mw-parser-output .navbox-subgroup .navbox-title{background-color:#ddf}.mw-parser-output .navbox-subgroup .navbox-group,.mw-parser-output .navbox-subgroup .navbox-abovebelow{background-color:#e6e6ff}.mw-parser-output .navbox-even{background-color:#f7f7f7}.mw-parser-output .navbox-odd{background-color:transparent}.mw-parser-output .navbox .hlist td dl,.mw-parser-output .navbox .hlist td ol,.mw-parser-output .navbox .hlist td ul,.mw-parser-output .navbox td.hlist dl,.mw-parser-output .navbox td.hlist ol,.mw-parser-output .navbox td.hlist ul{padding:0.125em 0}.mw-parser-output .navbox .navbar{display:block;font-size:100%}.mw-parser-output .navbox-title .navbar{float:left;text-align:left;margin-right:0.5em}body.skin--responsive .mw-parser-output .navbox-image img{max-width:none!important}@media print{body.ns-0 .mw-parser-output .navbox{display:none!important}}
/* end https://en.wikipedia.org/ */
</style></div><div role="navigation" class="navbox" aria-labelledby="Line_coding_(digital_baseband_transmission)443" style="padding:3px"><table class="nowraplinks mw-collapsible autocollapse navbox-inner" style="border-spacing:0;background:transparent;color:inherit"><tbody><tr><th scope="col" class="navbox-title" colspan="3"><div id="Line_coding_(digital_baseband_transmission)443" style="font-size:114%;margin:0 4em"><a href="Line_coding" class="mw-redirect" title="Line coding">Line coding</a> (digital baseband transmission)</div></th></tr><tr><th scope="row" class="navbox-group" style="width:1%">Main articles</th><td class="navbox-list-with-group navbox-list navbox-odd hlist" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Unipolar_encoding" title="Unipolar encoding">Unipolar encoding</a></li>
<li><a href="Bipolar_encoding" title="Bipolar encoding">Bipolar encoding</a></li>
<li><a href="On%E2%80%93off_keying" title="On–off keying">On–off keying</a></li>
<li><a href="Mark_and_space" title="Mark and space">Mark and space</a></li></ul>
</div></td><td class="noviewer navbox-image" rowspan="4" style="width:1px;padding:0 0 0 2px"><div><span typeof="mw:File"></span></div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Basic </th><td class="navbox-list-with-group navbox-list navbox-even hlist" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Return-to-zero" title="Return-to-zero">Return to zero (RZ)</a></li>
<li><a href="Non-return-to-zero#Non-return-to-zero_level" title="Non-return-to-zero">Non-return-to-zero, level (NRZ/NRZ-L)</a></li>
<li><a href="Non-return-to-zero#Non-return-to-zero_inverted" title="Non-return-to-zero">Non-return-to-zero, inverted (NRZ-I)</a></li>
<li><a href="Non-return-to-zero#Non-return-to-zero_space" title="Non-return-to-zero">Non-return-to-zero, space (NRZ-S)</a></li>
<li><a href="Manchester_code" title="Manchester code">Manchester</a></li>
<li><a href="Differential_Manchester_encoding" title="Differential Manchester encoding">Differential Manchester/biphase (Bi-φ)</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Extended line codes</th><td class="navbox-list-with-group navbox-list navbox-odd hlist" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Conditioned_diphase" class="mw-redirect" title="Conditioned diphase">Conditioned diphase</a></li>
<li><a href="4B3T" title="4B3T">4B3T</a></li>
<li><a href="4B5B" title="4B5B">4B5B</a></li>
<li><a href="2B1Q" title="2B1Q">2B1Q</a></li>
<li><a href="Bipolar_encoding#Alternate_mark_inversion" title="Bipolar encoding">Alternate mark inversion</a></li>
<li><a href="Modified_AMI_code" title="Modified AMI code">Modified AMI code</a></li>
<li><a href="Coded_mark_inversion" title="Coded mark inversion">Coded mark inversion</a></li>
<li><a href="MLT-3_encoding" title="MLT-3 encoding">MLT-3 encoding</a></li>
<li><a href="Hybrid_ternary_code" title="Hybrid ternary code">Hybrid ternary code</a></li>
<li><a href="6b/8b_encoding" title="6b/8b encoding">6b/8b encoding</a></li>
<li><a href="8b/10b_encoding" title="8b/10b encoding">8b/10b encoding</a></li>
<li><a href="64b/66b_encoding" title="64b/66b encoding">64b/66b encoding</a></li>
<li><a href="Eight-to-fourteen_modulation" title="Eight-to-fourteen modulation">Eight-to-fourteen modulation</a></li>
<li><a href="Delay_encoding" class="mw-redirect" title="Delay encoding">Delay/Miller encoding</a></li>
<li><a href="TC-PAM" title="TC-PAM">TC-PAM</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Optical line codes</th><td class="navbox-list-with-group navbox-list navbox-even hlist" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Carrier-suppressed_return-to-zero" class="mw-redirect" title="Carrier-suppressed return-to-zero">Carrier-suppressed return-to-zero</a></li>
<li><a href="Alternate-phase_return-to-zero" class="mw-redirect" title="Alternate-phase return-to-zero">Alternate-phase return-to-zero</a></li></ul>
</div></td></tr><tr><td class="navbox-abovebelow hlist" colspan="3"><div>
<ul><li><i>See also:</i> <a href="Baseband" title="Baseband">Baseband</a></li>
<li><a href="Baud" title="Baud">Baud</a></li>
<li><a href="Bit_rate" title="Bit rate">Bit rate</a></li>
<li><a href="Digital_signal" title="Digital signal">Digital signal</a></li>
<li><a href="Digital_transmission" class="mw-redirect" title="Digital transmission">Digital transmission</a></li>
<li><a href="Ethernet_physical_layer" title="Ethernet physical layer">Ethernet physical layer</a></li>
<li><a href="Modulation" class="mw-redirect" title="Modulation">Pulse modulation methods</a></li>
<li><a href="Pulse-amplitude_modulation" title="Pulse-amplitude modulation">Pulse-amplitude modulation</a> (PAM)</li>
<li><a href="Pulse-code_modulation" title="Pulse-code modulation">Pulse-code modulation</a> (PCM)</li>
<li><a href="Serial_communication" title="Serial communication">Serial communication</a></li>
<li>Category:Line codes</li></ul>
</div></td></tr></tbody></table></div></div></div><!--htdig_noindex--><div><div class="zim-footer">
This article is issued from <a class="external text" title="Last edited on 2025-06-04" href="https://en.wikipedia.org/wiki/?title=Line_code&oldid=1293900626">Wikipedia</a>. The text is available under <a class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en">Creative Commons Attribution-Share Alike 4.0</a> unless otherwise noted. Additional terms may apply for the media files.
</div>
</div><!--/htdig_noindex--></div>
</div>
</main>
</div>
</div>
</div>
</body></html>